import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/login/Login.vue')
  },
  {
    path: '/menu',
    name: 'Menu',
    component: () => import( '../views/menu/Menu.vue'),
    meta:{
      requireAuth:true

    }
  },
  {
    path: '/system',
    name: 'System',
    component: () => import( '../views/system/SystemV1.vue'),
    meta:{
      requireAuth:true
    },
    children:[
      
    ]
  },
  {
    path:'/system/stereoscopicLibrary',
    component:()=> import('../views/system/list/stereoscopicLibrary/StereoscopicLibrary.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/deliveryTrolley',
    component:()=> import('../views/system/list/deliveryTrolley/DeliveryTrolley.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/toolKit',
    component:()=> import('../views/system/list/toolKit/ToolKit.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/toolMaterial',
    component:()=> import('../views/system/list/toolMaterial/ToolMaterial.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/bufferBin',
    component:()=> import('../views/system/list/bufferBin/BufferBin.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/largeGoodsShelves',
    component:()=> import('../views/system/list/largeGoodsShelves/LargeGoodsShelves.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/largeGoodsMaterial',
    component:()=> import('../views/system/list/largeGoodsMaterial/LargeGoodsMaterial.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/wcsInterface',
    component:()=> import('../views/system/list/wcsInterface/index.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/logSearch',
    component:()=> import('../views/system/list/logSearch/index.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/sortingTable',
    component:()=> import('../views/system/list/sortingTable/SortingTable.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/binMaterial',
    component:()=> import('../views/system/list/binMaterial/BinMaterial.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/deliveryPerson',
    component:()=> import('../views/system/list/deliveryPerson/DeliveryPerson.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/roleManage',
    component:()=> import('../views/system/list/roleManage/roleMange.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/userManage',
    component:()=> import('../views/system/list/userManage/userManage.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/system/userRoleManage',
    component:()=> import('../views/system/list/userManage/userRoleManage.vue'),
    meta:{
      requireAuth:true
    },
  
  },
  {
    path:'/system/roadManage',
    component:()=> import('../views/system/list/roadManage/roadManage.vue'),
    meta:{
      requireAuth:true
    },
  
  },
  // {
  //   path: '/materialReceipt',
  //   name: 'MaterialReceipt',
  //   component: () => import( '../views/materialReceipt/MaterialReceipt.vue'),
  //   meta:{
  //     requireAuth:true
  //   },
  //   children:[
      
  //   ]
  // },
  {
    path: '/materialReceipt',
    name: 'MaterialReceipt',
    component: () => import( '../views/materialReceipt/MaterialReceiptV1.vue'),
    meta:{
      requireAuth:true
    },
   
  },
  {
    path:'/materialReceipt/scanningHandover',
    name:'ScanningHandover',
    component:()=> import('../views/materialReceipt/list/scanningHandover/ScanningHandover.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/coordinateManagement',
    component:()=> import('../views/materialReceipt/list/coordinateManagement/CoordinateManagement.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/scanningReturn',
    component:()=> import('../views/materialReceipt/list/scanningReturn/ScanningReturn.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/partReceive',
    component:()=> import('../views/materialReceipt/list/partReceive/PartReceive.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/finishedReceive',
    component:()=> import('../views/materialReceipt/list/finishedReceive/FinishedReceive.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/receivedDeliveryPlan',
    component:()=> import('../views/materialReceipt/list/receivedDeliveryPlan/receivedDeliveryPlan.vue'),
    meta:{
      requireAuth:true
    }
  },
  {
    path:'/materialReceipt/returnReceive',
    component:()=> import('../views/materialReceipt/list/returnReceive/ReturnReceive.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/standardReceive',
    component:()=> import('../views/materialReceipt/list/standardReceive/StandardReceive.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/materialWarehousing',
    component:()=> import('../views/materialReceipt/list/materialWarehousing/MaterialWarehousing.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/partReturn',
    component:()=> import('../views/materialReceipt/list/partReturn/PartReturn.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/finishReturn',
    component:()=> import('../views/materialReceipt/list/finishReturn/FinishReturn.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/materialReceipt/standardReturn',
    component:()=> import('../views/materialReceipt/list/standardReturn/StandardReturn.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path: '/sortingMatching',
    name: 'SortingMatching',
    component: () => import( '../views/sortingMatching/SortingMatchingV1.vue'),
    meta:{
      requireAuth:true
    },
    
  },
  {
    path:'/sortingMatching/supportingTask',
    component:()=> import('../views/sortingMatching/list/supportingTask/SupportingTask.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/sortingPreMatching',
    component:()=> import('../views/sortingMatching/list/sortingPreMatching/SortingPreMatching.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/sortTask',
    component:()=> import('../views/sortingMatching/list/sortTask/SortTask.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/sortManagementDo',
    component:()=> import('../views/sortingMatching/list/sortManagementDo/SortManagementdo.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/changeSort',
    component:()=> import('../views/sortingMatching/list/changeSort/ChangeSort.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/workpackageUnpack',
    component:()=> import('../views/sortingMatching/list/workpackageUnpack/WorkpackageUnpack.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/workpageSortMain',
    component:()=> import('../views/sortingMatching/list/workpakageSort/workpageSortMain.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/workpackageCancellation',
    component:()=> import('../views/sortingMatching/list/workpackageCancellation/WorkpackageCancellation.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/workpackageReplacement',
    component:()=> import('../views/sortingMatching/list/workpackageReplacement/WorkpackageReplacement.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/receiveSorting',
    component:()=> import('../views/sortingMatching/list/receiveSorting/ReceiveSorting.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/preMatchTaskQuery',
    component:()=> import('../views/sortingMatching/list/preMatchTaskQuery/preMatchTaskQuery.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/sortTaskQuery',
    component:()=> import('../views/sortingMatching/list/sortTaskQuery/sortTaskQuery.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/sortingMatching/workpackageUnpackNotGygg',
    component:()=> import('../views/sortingMatching/list/workpackageUnpackNotGygg/workpackageUnpackNotGygg.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/operationMonitoring/erpLogQuery',
    component:()=> import('../views/operationMonitoring/list/erpLog/erpLogQuery.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path:'/operationMonitoring/workbinQuery',
    component:()=> import('../views/operationMonitoring/list/workbinQuery/workbinQuery.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path: '/materialDistribution',
    name: 'MaterialDistribution',
    component: () => import( '../views/materialDistribution/MaterialDistribution.vue'),
    meta:{
      requireAuth:true
    },
  },
    {
      path: '/MainMaterialDistribution',
      name: 'MainMaterialDistribution',
      component: () => import( '../views/materialDistribution/MainMaterialDistribution.vue'),
      meta:{
        requireAuth:true
      },
    },
    // children:[{
    //   path:'deliveryTask',
    //   component:()=> import('../views/materialDistribution/list/deliveryTask/DeliveryTask.vue'),
    //   meta:{
    //     requireAuth:true
    //   },
    // },{
    //   path:'deliveryScanHandover',
    //   component:()=> import('../views/materialDistribution/list/deliveryScanHandover/DeliveryScanHandover.vue'),
    //   meta:{
    //     requireAuth:true
    //   },
    // },{
    //   path:'receiveDirectDistribution',
    //   component:()=> import('../views/materialDistribution/list/receiveDirectDistribution/ReceiveDirectDistribution.vue'),
    //   meta:{
    //     requireAuth:true
    //   },
    // }]

  {
    path:'/materialDistribution/deliveryTask',
    component:()=> import('../views/materialDistribution/list/deliveryTask/DeliveryTask.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/materialDistribution/deliveryScanHandover',
    component:()=> import('../views/materialDistribution/list/deliveryScanHandover/DeliveryScanHandover.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/materialDistribution/receiveDirectDistribution',
    component:()=> import('../views/materialDistribution/list/receiveDirectDistribution/ReceiveDirectDistribution.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path: '/inventoryManagement',
    name: 'InventoryManagement',
    component: () => import( '../views/inventoryManagement/InventoryManagementV1.vue'),
    meta:{
      requireAuth:true
    },
    children:[]
  },
  {
    path:'/inventoryManagement/flowQuery',
    component:()=> import('../views/inventoryManagement/list/flowQuery/FlowQuery.vue'),
    meta:{
      requireAuth:true
    }
  },{
    path:'/inventoryManagement/inventoryQuery',
    component:()=> import('../views/inventoryManagement/list/inventoryQuery/InventoryQuery.vue'),
    meta:{
      requireAuth:true
    }
  },{
    path:'/inventoryManagement/stockReturnQuery',
    component:()=> import('../views/inventoryManagement/list/stockReturnQuery/StockReturnQuery.vue'),
    meta:{
      requireAuth:true
    }
  },{
    path:'/inventoryManagement/inventoryLotNoQuery',
    component:()=> import('../views/inventoryManagement/list/inventoryLotNoQuery/inventoryLotNoQuery.vue'),
    meta:{
      requireAuth:true
    }
  },{
    path:'/inventoryManagement/handoverQuery',
    component:()=> import('../views/inventoryManagement/list/handoverQuery/HandoverQuery.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/inventoryManagement/trayInfo',
    component:()=> import('../views/inventoryManagement/list/trayInfo/TrayInfo.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/inventoryManagement/deliveryQuery',
    component:()=> import('../views/inventoryManagement/list/deliveryQuery/DeliveryQuery.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/inventoryManagement/erpOutBill',
    component:()=> import('../views/inventoryManagement/list/erpOutBill/ErpOutBill.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/inventoryManagement/outInFlowQuery',
    component:()=> import('../views/inventoryManagement/list/outInFlowQuery/OutInFlowQuery.vue'),
    meta:{
      requireAuth:true
    },
  },{
    path:'/inventoryManagement/sortDeliveryQuery',
    component:()=> import('../views/inventoryManagement/list/sortDeliveryQuery/sortDeliveryQuery.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path: '/operationMonitoring',
    name: 'OperationMonitoring',
    component: () => import( '../views/operationMonitoring/OperationMonitoring.vue'),
    meta:{
      requireAuth:true
    },
  },
  {
    path: '*',
    name: 'NotFound',
    component: () => import( '../views/notFound/NotFound.vue'),
    meta:{
      requireAuth:true
    }
  }
]



const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})




export default router
